package cn.fuck;

import sun.nio.cs.ext.MacThai;

public class TestMath {
    public static void main(String[] args) {
        // 向上取整infinity or
        //     * positive zero or negative zero, then the result is the same as
        //     * the argument.
        System.out.println(Math.ceil(9.1));
        // e^2
        System.out.println(Math.exp(2));

        // 类似ceil
        System.out.println(Math.floor(1.0 / 0.0));

        System.out.println(Math.floorDiv(27, 7));  // 3
        System.out.println(Math.floorMod(29,7));  // 1

        // 角度变弧度
        System.out.println(Math.toRadians(30));

        // 弧度变角度
        System.out.println(Math.toDegrees(Math.PI));

    }
}
